<%
Class PostModel
	Public Sub init
		db.tableName = "post"
		db.prikey = "post_id"
		db.auto_ = array( _
			array("user_id",S_("name")("user_id") ,1 ) , _
			array("add_time","now" ,1 , "function" ) , _			
			array("mod_time","now" ,2 , "function" )  _		
		)
		db.validate_ = array( _
			array( "content","2,200","内容长度应为2~200！",1,"length" ) _
		)
	End Sub	
End Class
%>